package com.generator.ddl;

import com.generator.ddl.excel.util.AnalysisUtil;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

import java.io.File;

@SpringBootApplication
@Configuration
public class JavaGeneratorDdlFromExcelApplication {

    //@Value("${ddlPath}")
    //public static void setDdlPath(String ddlPath) {
    //    JavaGeneratorDdlFromExcelApplication.ddlPath = ddlPath;
    //}

    //static String ddlPath;
    public static void main(String[] args) {
//        SpringApplication.run(JavaGeneratorDdlFromExcelApplication.class, args);
//        AnalysisUtil.getDDLContextFromExcel(args[0]);
        String separator = File.separator;
        AnalysisUtil.printDDL(System.getProperty("user.dir") +separator+ "ddl的excel模板.xlsx");
    }

}
